home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990725-20000114 / 000187_news@columbia.edu _Wed Oct 13 09:25:41 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA00256
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 13 Oct 1999 09:25:40 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA08480
  7.     for kermit.misc@watsun.cc.columbia.edu; Wed, 13 Oct 1999 09:16:30 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: Problems with Exit from dail script to take script
  11. Date: 13 Oct 1999 13:16:29 GMT
  12. Organization: Columbia University
  13. Message-ID: <7u20nd$88t$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <939806492.394521@perla.rotterdam.luna.net>,
  17. Chris H. de Dijker <webmaster@copex.nl> wrote:
  18. : I use the following simple (mskermit 3.15)-script for testing:
  19. : ;download.scr
  20. : set modem bestdata
  21. : dial test
  22. : if failure goto notconnect
  23. : echo Connection successful
  24. : ; rest of the script
  25. : hangup
  26. : exit
  27. : :notconnect
  28. : echo Connection failed
  29. : set errorlevel 2
  30. : hangup
  31. : exit
  32. : Now I start the script with the command: kermit take download.scr
  33. : Because I want to test the not connect status, I simulate a NO DIALTONE by
  34. : removing the line from the modem.
  35. : The bestdata.scr goes to the :FAIL Label and returns the END 1 command.
  36. : The program goes back to download.scr. and allways displays that the
  37. : connection was successful.
  38. : What's wrong ????
  39. The script looks right.  If the dialing scripts ends with END 1, then the IF
  40. FAILURE test after the DIAL command should succeed, and control should be
  41. transferred to the NOTCONNECT label.
  42.  
  43. MS-DOS Kermit 3.15 has a certain difference from earlier versions, namely
  44. that DIAL is a built-in command.  Previously it was a macro.  Now, it
  45. invokes a script if a script for the current modem exists, otherwise it
  46. tries to place the call using the minimum set of AT commands and modem
  47. signals.
  48.  
  49. Macro invocations definitely do pass along the success/failure status of
  50. the macro (so END 1 from the macro makes the invocation fail; END 0 makes
  51. it succeed), but it seems the DIAL command does not notice the failure
  52. return from the dialing script.
  53.  
  54. This is a bug.  We will have to fix it in version 3.16.  Thanks for noticing
  55. and reporting it.  In the meantime, you should be able to work around the
  56. problem by testing for the CD signal after dialing:
  57.  
  58.   dial test
  59.   wait 0 CD
  60.   if failure goto notconnect
  61.  
  62. - Frank